﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BuilderPaper.aspx.cs" Inherits="sysadmin_QuestionManager_BuilderPaper" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加试卷(生成试卷)</title>

    <script type="text/javascript">
            function AddComment(var ID)
            {
                //window.ffMain.LeftupFrame.MediaPlayer.Controls.Pause();
//                var cu = window.ffMain.LeftupFrame.MediaPlayer.Controls.currentPosition;
                var ul = "EditPaperQuestion_Dialog.aspx?qid="+ID;
                
                this.showModalDialog(ul,window,"dialogWidth: 450px; dialogHeight: 230px;status: no; help: no");
            }
    </script>

    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body class="bodymain">
    <form id="form1" runat="server">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
            <tr>
                <td class="tree-titbg_left">
                    <asp:Label ID="lab_TitleInfo" runat="server" Text="添加试卷(完成)"></asp:Label></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
            <tr>
                <th>
                    <asp:Label ID="lab_PaperNameTitle" runat="server" Text="试卷名称"></asp:Label></th><td><asp:Label ID="lab_Papername" runat="server" Text="试卷信息"></asp:Label></td>
                <th>
                    <asp:Label ID="lab_PaperScoreTitle" runat="server" Text="试卷总分"></asp:Label></th><td><asp:Label ID="lab_paperScore" runat="server" Text="试卷信息"></asp:Label></td>
                <th>
                    <asp:Label ID="lab_PaperCountTitle" runat="server" Text="试卷总题数"></asp:Label></th><td><asp:Label ID="lab_questioncount" runat="server" Text="试卷信息"></asp:Label></td>
                <th>
                    <asp:Label ID="lab_KeguanCountTitle" runat="server" Text="客观题总数"></asp:Label></th><td><asp:Label ID="lab_keguancount" runat="server" Text="试卷信息"></asp:Label></td>
                <th>
                    <asp:Label ID="lab_ZhuguanCountTitle" runat="server" Text="主观题总数"></asp:Label></th><td><asp:Label ID="lab_zhuguancount" runat="server" Text="试卷信息"></asp:Label></td>
            </tr>
      
            <tr>
                <td class="tree-bottom-bg" colspan="10"> 
                    <asp:Button ID="btn_yulan" runat="server" Text="预览" OnClick="btn_yulan_Click" CssClass="inputBotton2" />
                    <asp:Button ID="btn_BuilderPaper" runat="server" Text="生成试卷" OnClick="btn_BuilderPaper_Click"
                        CssClass="inputBotton2" />
                    <asp:Button ID="btn_GoBack" runat="server" Text="返回上一步" OnClick="btn_GoBack_Click"
                        CssClass="inputBotton2" /></td>
            </tr>
        </table>
 
        <asp:GridView ID="gvQuestionList" runat="server" AutoGenerateColumns="False" OnRowCommand="gvQuestionList_RowCommand"
            OnRowDataBound="gvQuestionList_RowDataBound" GridLines="None" BorderWidth="0px"
            CssClass="mainList">
            <Columns>
                <asp:BoundField DataField="PaperQuestionTempID" HeaderText="标识" Visible="False" />
                <asp:BoundField DataField="QuestionID" HeaderText="试题编号" />
                <asp:TemplateField HeaderText="试题内容">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text='<%#Eval("PaperQuestionTempContent") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:BoundField DataField="FKQuestionTypeID" HeaderText="试题类型" />
                <asp:BoundField DataField="PaperQuestionTempScore" HeaderText="试题分数" />
                <asp:BoundField DataField="QuestionDiffculty" HeaderText="试题难度" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        &nbsp;
                        <asp:ImageButton ID="ibtnDelete" runat="server" CommandArgument='<%#Eval("PaperQuestionTempID") %>'
                            CommandName="mydelete" OnClientClick="return confirm('确认删除吗?')" ImageUrl="~/images/ico_delete.gif" />
                        &nbsp;
                        <asp:ImageButton ID="btn_Edit" runat="server" CommandArgument='<%#Eval("PaperQuestionTempID") %>'
                            CommandName="btn_Edit" ImageUrl="~/images/ico_editor.gif" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        &nbsp;

        <table width="100%">
            <tr align="center">
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourcekey="AspNetPager1" Style="font-size: 14px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
